package com.cetccloud.ap.proxy.common.event;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName CallbackEvent
 * @Description TODO
 * @Author superz
 * @Date 2021/4/9 16:31
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
public class CallbackEvent {

    private String identity;

    private Object data;

    private String message;

    public boolean isSuccess() {
        return StringUtils.isBlank(message);
    }
}
